services.gitlab-runner.services.<name>.authenticationTokenConfigFile

Absolute path to a file containing environment variables used for gitlab-runner registrations with runner authentication tokens. They replace the deprecated runner registration tokens, as outlined in the GitLab documentation.

A list of all supported environment variables can be found with gitlab-runner register --help.

The ones you probably want to set are:

Make sure to use a quoted absolute path, or it is going to be copied to Nix Store.

Type
null or absolute path
Default
null
Declared
<nixpkgs/nixos/modules/services/continuous-integration/gitlab-runner/runner.nix>